package com.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lbq
 * @version 1.0
 * @date 2021/3/13 23:26
 */
@FeignClient(name = "code-service")
public interface CodeFeign {

    /**
     * 校验验证码是否正确
     *
     * @param email 邮箱地址
     * @param code  验证码
     * @return
     */
    @GetMapping("/code/validate/{email}/{code}")
    public String validate(@PathVariable("email") String email,
                           @PathVariable("code") String code);
}
